<?php
/**
 * Allows to save and delete specified object
 * 
 * @author 	Damian Sromek <damianpaq@gmail.com>
 * @version 0.1
 */
interface Plus_Model_Mapper_Interface
{
	/**
	 * Stores object somewhere, e.g. database, filesystem...
	 * 
	 * @param 	$object obejct we want to save
	 * @return 	void
	 * @throws 	Exception if error occured while saving object
	 */
	function save($object);
	
	/**
	 * Deletes object from where it is stored, eg. database, filesystem.
	 * @param $object object we want to delete
	 * @return void
	 * @throws Exception if error occured while deleteing object
	 */
	function delete($object);
}